package com.itheima.web;


import com.itheima.pojo.User;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.*;

@RestController
public class LoginContoller {

    @PostMapping("/login.do")
    public String logined(@RequestBody User user) {
        final String Email = "111@qq.com";
        if (!StringUtils.isEmpty(user.getEmail()) && Email.equals(user.getEmail())) {
            return "success";
        }
        return "fail";
    }

}
